#pragma once

#include "form/IToolBar.h"
#include "ControlBar.h"

class ToolBar: public ControlBar<IToolBar>
{
public:
	BEGIN_DEFINE_CLASS(CLSID_ToolBar)
		DEFINE_INTERFACE_ENTRY(IToolBar)
		USE_INTERFACE_ENTRY(ControlBar)
	END_DEFINE_CLASS()

	ToolBar();
	virtual ~ToolBar();

	virtual IButton* AddButton();
	virtual void SetAlign(kToolBarAlign value);
	virtual kToolBarAlign GetAlign() const;
	virtual void SetName(const String& value);
	virtual const String& GetName() const;

private:
	kToolBarAlign m_align;
	String m_name;
};
AUTO_REGISTER_CLASSMAP_ENTRY(ToolBar)
